package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsCellInfo = "cms_cell_info"

func init() {
	var r = &CmsCellInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsCellInfo struct {
	CellId     int    `json:"cellId" form:"cellId" column:"cell_id" primary:"true" modify:"false"`
	CellName   string `form:"cellName" column:"cell_name" modify:"true" json:"cellName"`
	CourseId   int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	Video      int    `json:"video" form:"video" column:"video" modify:"true"`
	Image      string `modify:"true" json:"image" form:"image" column:"image"`
	QuestionId int    `json:"questionId" form:"questionId" column:"question_id" modify:"true"`
	Status     int    `column:"status" modify:"true" json:"status" form:"status"`
	CreateTime string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime string `modify:"false" json:"updateTime" form:"updateTime" column:"update_time"`
}

func (r *CmsCellInfo) Name() string {
	return RecordNameCmsCellInfo
}
